Next | Prev | Up | Top | Contents | Index

Manually Mounting Filesystems

The mount command is used to manually mount filesystems. The basic forms of the mount command are:

mount device_file mount_point_directory
mount host:directory mount_point_directory 
device_file is a block device file. host:directory is the hostname and pathname of a remote directory that has been exported on the remote host by using the exportfs command on the remote host (it requires NFS). mount_point_directory is the mount point directory. The mount point must already exist (you can create it with the mkdir command).

If you omit either the device_file or the mount_point_directory from the mount command line, mount checks the file /etc/fstab to find the missing argument (see the section "Mounting Filesystems Automatically With the /etc/fstab File" for more information about /etc/fstab).

For example, to mount a filesystem manually, use this command:

mount /dev/dsk/dks0d1s6 /usr 
Another example, which uses a mnemonic device file name, is:

mount /dev/usr /usr 
An example of a mount command for a filesystem that is listed in /etc/fstab is:

mount /d2 
Other useful mount commands are:

mount -a

Mount all filesystems listed in /etc/fstab.

mount -h host

Mount all filesystems listed in /etc/fstab that are remote-mounted from the system named host.
See the mount(1M) reference page for more information about the mount command.


Next | Prev | Up | Top | Contents | Index